package hnlg.com.cn.purviewmanage.modulemanage.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import hnlg.com.cn.model.ModuleVO;
import hnlg.com.cn.purviewmanage.modulemanage.mapper.ModuleMapper;

@Service("ModuleService")
@Transactional(value="txManager",rollbackFor=Exception.class)
public class IModuleServiceImpl implements IModuleService {

	@Autowired ModuleMapper obj;
	@Override
	
	@Transactional(propagation=Propagation.NOT_SUPPORTED,readOnly=true)
	public List<ModuleVO> queryList(ModuleVO vo) throws Exception {
		
		return obj.queryList(vo);
	}

	@Override
	public ModuleVO queryvo(String moduleid) throws Exception {
		
		return obj.queryvo(moduleid);
	}

	@Override
	public boolean addModule(ModuleVO vo) throws Exception {
		
		return obj.addModule(vo);
	}

	@Override
	public boolean updateModule(ModuleVO vo) throws Exception {
		
		return obj.updateModule(vo);
	}

	@Override
	public boolean deleteModule(String moduleid) throws Exception {
	
		return obj.deleteModule(moduleid);
	}

}
